import hashlib, sys
try:
    f1 = file(sys.argv[1], "rb")
    print "md5 checksum=%s\n" % (hashlib.md5(f1.read()).hexdigest())
except:
    print "usage ./%s <fichier>\n" % (sys.argv[0])
